package com.songyz.image.compress.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Service;

@Service
public class WebSocketService {

    @Autowired
    public SimpMessagingTemplate template;

    public void sendMsg(String sessionId, String broker, Object msg) {
        template.convertAndSendToUser(sessionId, broker, msg);
    }

}
